package com.future.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.future.dao.UserDao;
import com.future.entity.User;

@Service
@Transactional
public class UserService
{
	@Resource
	private UserDao userDao;
	
	public void saveOrUpdate(User user){
		userDao.saveOrUpdate(user);
	}
	
	public void delete(User user){
		userDao.delete(user);
	}
	
	public User findUnique(Long id){
		return userDao.findUnique(id);
	}
}
